<?php

/**
 * Homepage presenter.
 */
class HomepagePresenter extends BasePresenter
{
    public function renderDefault()
    {        
        $estateModel = new EstateModel($this->db);
        $this->template->newEstates = $estateModel->where("deleted = ?", 0)->order("id DESC")->limit(4);
    }
}
